package ru.amse.tsyganov.jumleditor.view;

import org.eclipse.swt.graphics.Rectangle;

import ru.amse.tsyganov.jumleditor.model.common.State;
import ru.amse.tsyganov.jumleditor.view.common.StateView;

public class TrackingRectangle {

	private final StateView<? extends State> view;
	
	private final Rectangle rectangle;
	
	private int dx;
	
	private int dy;
	
	public TrackingRectangle(StateView<? extends State> view) {
		this.view = view;
		rectangle = view.getRectangle();
	}
	
	public int getDx() {
		return dx;
	}

	public int getDy() {
		return dy;
	}

	public Rectangle getRectangle() {
		return rectangle;
	}

	public StateView<? extends State> getView() {
		return view;
	}

	public void setDx(int dx) {
		this.dx = dx;
	}

	public void setDy(int dy) {
		this.dy = dy;
	}
}
